package com.lt.report.util;

public class ResponseResult {

    /**
     * 数据返回实体
     *
     * @author yz
     */
    private Integer code;//状态码
    private Boolean isSuccess;//状态
    private String message;//消息
    private Object result;//数据对象

    /**
     * 无参构造器
     */
    public ResponseResult() {
        super();
    }

    /**
     * 只返回状态，状态码，消息
     *
     * @param
     * @param code
     * @param message
     */
    public ResponseResult(Boolean success, Integer code, String message) {
        super();
        this.isSuccess = success;
        this.code = code;
        this.message = message;
    }

    /**
     * 只返回状态，状态码，数据对象
     *
     * @param
     * @param code
     */
    public ResponseResult(Boolean success, Integer code, Object result) {
        super();
        this.isSuccess = success;
        this.code = code;
        this.result = result;
    }

    /**
     * 返回全部信息即状态，状态码，消息，数据对象
     *
     * @param
     * @param code
     * @param message
     * @param result
     */
    public ResponseResult(Boolean success, Integer code, String message, Object result) {
        super();
        this.isSuccess = success;
        this.code = code;
        this.message = message;
        this.result = result;
    }

    public ResponseResult(Boolean success, String message, Object result) {
        super();
        this.isSuccess = success;
        this.message = message;
        this.result = result;
    }
    public ResponseResult(Boolean success, String message) {
        super();
        this.isSuccess = success;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Boolean getSuccess() {
        return isSuccess;
    }

    public void setSuccess(Boolean success) {
        isSuccess = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}
